package com.sky.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sky.entity.Inheritors;
import com.sky.service.InheritorsService;
import com.sky.mapper.InheritorsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 32603
* @description 针对表【inheritors(传承人表)】的数据库操作Service实现
* @createDate 2024-09-28 17:56:35
*/
@Service
public class InheritorsServiceImpl extends ServiceImpl<InheritorsMapper, Inheritors>
    implements InheritorsService{
    @Autowired
    private InheritorsMapper inheritorsMapper;

    @Override
    public List<Inheritors> getByNonheritage(Integer id) {
        return inheritorsMapper.selectList(
                new QueryWrapper<Inheritors>().eq("nonheritage_id", id));
    }
}




